import request from '@/utils/request'

// 查询水温监测列表
export function listTemperature(query) {
  return request({
    url: '/hma/temperature/list',
    method: 'get',
    params: query
  })
}

// 查询水温监测详细
export function getTemperature(readingId) {
  return request({
    url: '/hma/temperature/' + readingId,
    method: 'get'
  })
}

// 新增水温监测
export function addTemperature(data) {
  return request({
    url: '/hma/temperature',
    method: 'post',
    data: data
  })
}

// 修改水温监测
export function updateTemperature(data) {
  return request({
    url: '/hma/temperature',
    method: 'put',
    data: data
  })
}

// 删除水温监测
export function delTemperature(readingId) {
  return request({
    url: '/hma/temperature/' + readingId,
    method: 'delete'
  })
}
